﻿using System;
using System.Collections.Generic;
using System.Text;
using xiaodingmarket_application.ViewModel;
using xiaodingmarket_Domain.Models;

namespace xiaodingmarket_application.Interfaces
{
    
    public interface IUserService : IDisposable
    {
        //新建一个用户
        void Create(UserViewModel userViewModel);
        //判断有没有该用户
        bool hasCreate(string studentid);
        //获取用户的角色
        //Role GetuserRole(string studentid);
        //获取用户详情
        UserViewModel GetById(Guid studentid);
        UserViewModel GetBystudentId(string userid);

        User GetallBystudentId(string studentid);
    }
}
